import request from '../../utils/request'

// 查询  返回 tableData
export function listInf(query) {
  return request({
    url: '/kyhs/borer/page',
    method: 'get',
    params: {
      page: query.page,
      pageSize: query.pageSize,
      id: query.borerId
    }
  })
}

export function getborer(id) {
  return request({
    url: '/kyhs/borer/select-by-id',
    method: 'get',
    params: {
      id
    }
  })
}

// 新增
export function addInf(data) {
  return request({
    url: '/kyhs/borer/save-one',
    method: 'post',
    data: data
  })
}

// 修改
export function updateInf(data) {
  return request({
    url: '/kyhs/borer/update-one',
    method: 'put',
    data: data
  })
}

// 删除
export function delInf(data) {
  return request({
    url: '/kyhs/borer/delete-one',
    method: 'delete',
    data: data
  })
}
